Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optional deps #61

Merged
merged 13 commits into from
Jul 27, 2022
Merged

Optional deps #61

merged 13 commits into from
Jul 27, 2022

Conversation

gabe-l-hart
Copy link
Collaborator

No description provided.

This will detect when an import statement is guarded by a try/except and
decorate the output of track_module with "optional": bool to indicate this.
The indication is an aggregate, so if there are three sources for a given
dependency, the "optional" field is only set to True if all three are
optional.

Signed-off-by: Gabe Goodhart <[email protected]>
This gives full flexibilty to library owners to tweak which optional deps
are kept, but defaults to not keeping any

Signed-off-by: Gabe Goodhart <[email protected]>
…ps sample lib

This will be used to ensure that try blocks are closed correctly

Signed-off-by: Gabe Goodhart <[email protected]>
Honestly not sure what happened here, but it seems that a plain -s is no
longer enough to show logs

Signed-off-by: Gabe Goodhart <[email protected]>
…nal when the direct dep is held as optional

Signed-off-by: Gabe Goodhart <[email protected]>
Copy link
Collaborator Author

@gabe-l-hart gabe-l-hart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did a manual review and it all looks right with no spurious debugging and/or bad comments

@gabe-l-hart gabe-l-hart merged commit fccdb04 into main Jul 27, 2022
@gabe-l-hart gabe-l-hart deleted the OptionalDeps branch July 27, 2022 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant